package com.map.station;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

public class HomeActivity extends Activity{

	private ImageButton imageButton;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.home);
		
		imageButton = (ImageButton)findViewById(R.id.image_butt);
		// tap to main menu
		imageButton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				gotoMain();
			}
		});
	}
	
	@Override
	public void onDestroy() {
		finish();
		System.exit(0);
	}
	
	private void gotoMain() {
		Intent intent = new Intent(this, MainActivity.class);
		startActivity(intent);
	}
	
}
